package com.derbysoft.lowcostadapter.dswitch3.handler.impl;

import com.derbysoft.lowcostadapter.dswitch3.service.impl.BaseHotelService;
import com.derbysoft.remote.dswitch.core.ErrorDTO;

/**
 * Created by: jason
 * Date: 2012-06-29
 */
public abstract class HandlerHelper {

    private static final String SOURCE = "dswitch3-lowcostbeds-adapter";

    public static ErrorDTO hotelNotFoundError(String hotelPassport) {
        ErrorDTO error = new ErrorDTO();
        error.setCode(BaseHotelService.SYSTEM);
        error.setSource(SOURCE);
        error.setMessage("HotelNotFound:" + hotelPassport);
        return error;
    }
}
